<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form" %>
<%@ taglib uri="http://www.springframework.org/tags" prefix="spring" %>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
<c:url value="/main/auth/login" var="loginUrl"/>
<c:url value="/main/main/registerSubmit" var="registerationSubmitUrl"/>
   <h2>User Registration</h2><br>
   <h3>All fields are mandatory</h3>
   <form method="post" action="${registerationSubmitUrl}" method="post">
	   				<label for="username">username</label><input style="width: 200px" id="username" name="username" type="text" /><br>
	   				<label for="password">password</label><input style="width: 200px" id="password" name="password" type="password" /><br>
	   				<label for="group_name">group_name</label>
	   				<input type="radio" id="group_name" name="group_name" value="group_common" /> group_common<br />
  					<input type="radio" id="group_name" name="group_name" value="group_premium" /> group_premium<br />
	   				<input type="submit" value="Register" /><a href="${loginUrl}">Back to login</a><br>
	</form>	
</body>
</html>